Component({
    externalClasses: [ "wux-class" ],
    options: {
        multipleSlots: !0
    },
    relations: {
        "../cell-group/index": {
            type: "parent"
        }
    },
    data: {
        isLast: !1
    },
    properties: {
        thumb: {
            type: String,
            value: ""
        },
        title: {
            type: String,
            value: ""
        },
        label: {
            type: String,
            value: ""
        },
        colors: {
            type: String,
            value: ""
        },
        extra: {
            type: String,
            value: ""
        },
        isLink: {
            type: Boolean,
            value: !1
        },
        openType: {
            type: String,
            value: "navigateTo"
        },
        url: {
            type: String,
            value: ""
        },
        delta: {
            type: Number,
            value: 1
        }
    },
    methods: {
        onTap: function() {
            var e = this.data, t = e.url, a = e.isLink, n = e.openType, i = e.delta, l = [ "navigateTo", "redirectTo", "switchTab", "navigateBack", "reLaunch" ];
            return this.triggerEvent("click"), !(!a || !t) && (l.includes(n) ? "navigateBack" === n ? wx[n].call(wx, {
                delta: i
            }) : wx[n].call(wx, {
                url: t
            }) : console.warn("openType 属性可选值为 navigateTo、redirectTo、switchTab、navigateBack、reLaunch", n));
        },
        updateIsLastElement: function(e) {
            this.setData({
                isLast: e
            });
        }
    }
});